@extends('Admin.layouts.application')
@section('css')

    <style>
        .am-margin-top {
            margin-top: 0;
        }
    </style>
@endsection
@section('content')
    <div class="admin-content">
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf">
                    <strong class="am-text-primary am-text-lg">APP升级管理</strong> /
                    <small>Create A New Room</small>
                </div>
            </div>

            <hr>
            @include('Admin.layouts._flash')
            <form class="am-form" method="post" action="{{route('app.update',$app->id)}}">
                {!! csrf_field() !!}
                {!! method_field('put') !!}
                <div>
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            <h2 style="margin-bottom: 0px; color: #0c79b1">酒店系统</h2>
                        </div>
                    </div>
                    <div class="am-g am-margin-top">
                        <hr data-am-widget="divider" style="" class="am-divider am-divider-dashed"/>
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            APP上传
                        </div>

                        <div class="am-u-sm-8 am-u-md-8 am-u-end col-end">

                            <div class="am-form-group am-form-file new_thumb">
                                <button type="button" class="am-btn am-btn-secondary am-btn-sm">
                                    <i class="am-icon-cloud-upload" id="loading"></i> 上传新的APP
                                </button>
                                <input type="file" id="app_one_upload" value="{{$app->url_aone}}">
                            </div>
                            </br>
                            <div class="am-u-sm-12 am-u-md-10">
                            </div>
                            <input type="hidden" name="url_aone" value="{{$app->url_aone}}">
                            <div class="am-u-sm-8 am-u-md-4 am-u-end col-end" style="padding-left: 0px;">
                                <label id="app_one_show">{{$app->url_aone}}</label>
                            </div>
                        </div>
                    </div>

                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-12 am-u-md-2 am-text-right admin-form-text">
                            版本号
                        </div>
                        <div class="am-u-sm-12 am-u-md-10">
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="number_aone" class="am-input-sm" value="{{$app->number_aone}}"
                                   disabled>
                        </div>

                    </div>

                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-12 am-u-md-2 am-text-right admin-form-text">
                            是否强制更新
                        </div>
                        <div class="am-u-sm-12 am-u-md-10">
                            <label class="am-radio-inline">
                                <input type="radio" value="1" name="is_update_one" @if($app->is_update_one == 1) checked @endif> 是
                            </label>
                            <label class="am-radio-inline">
                                <input type="radio" value="0" name="is_update_one" @if($app->is_update_one == 0) checked @endif> 否
                            </label>
                        </div>
                    </div>
                    <hr data-am-widget="divider" style="" class="am-divider am-divider-dashed"/>
                </div>
                <div>
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            <h2 style="margin-bottom: 0px; color: #d93c37">直播系统</h2>
                        </div>
                    </div>
                    <div class="am-g am-margin-top">
                        <hr data-am-widget="divider" style="" class="am-divider am-divider-dashed"/>
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            APP上传
                        </div>

                        <div class="am-u-sm-8 am-u-md-8 am-u-end col-end">

                            <div class="am-form-group am-form-file new_thumb">
                                <button type="button" class="am-btn am-btn-secondary am-btn-sm">
                                    <i class="am-icon-cloud-upload" id="loading"></i> 上传新的APP
                                </button>
                                <input type="file" id="app_two_upload" value="{{$app->url_atwo}}">
                            </div>
                            </br>
                            <div class="am-u-sm-12 am-u-md-10">
                            </div>
                            <input type="hidden" name="url_atwo" value="{{$app->url_atwo}}">
                            <div class="am-u-sm-8 am-u-md-4 am-u-end col-end" style="padding-left: 0px;">
                                <label id="app_two_show">{{$app->url_atwo}}</label>
                            </div>

                        </div>
                    </div>

                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-12 am-u-md-2 am-text-right admin-form-text">
                            版本号
                        </div>
                        <div class="am-u-sm-12 am-u-md-10">
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="number_atwo" class="am-input-sm" value="{{$app->number_atwo}}"
                                   disabled>
                        </div>

                    </div>
                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-12 am-u-md-2 am-text-right admin-form-text">
                            是否强制更新
                        </div>
                        <div class="am-u-sm-12 am-u-md-10">
                            <label class="am-radio-inline">
                                <input type="radio" value="1" name="is_update_two" @if($app->is_update_two == 1) checked @endif> 是
                            </label>
                            <label class="am-radio-inline">
                                <input type="radio" value="0" name="is_update_two" @if($app->is_update_two == 0) checked @endif> 否
                            </label>
                        </div>
                    </div>
                    <hr data-am-widget="divider" style="" class="am-divider am-divider-dashed"/>
                </div>
                <div>
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            <h2 style="margin-bottom: 0px; color: #e0690c">点播系统</h2>
                        </div>
                    </div>
                    <div class="am-g am-margin-top">
                        <hr data-am-widget="divider" style="" class="am-divider am-divider-dashed"/>
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            APP上传
                        </div>

                        <div class="am-u-sm-8 am-u-md-8 am-u-end col-end">

                            <div class="am-form-group am-form-file new_thumb">
                                <button type="button" class="am-btn am-btn-secondary am-btn-sm">
                                    <i class="am-icon-cloud-upload" id="loading"></i> 上传新的APP
                                </button>
                                <input type="file" id="app_three_upload" value="{{$app->url_athree}}">
                            </div>
                            </br>
                            <div class="am-u-sm-12 am-u-md-10">
                            </div>
                            <input type="hidden" name="url_athree" value="{{$app->url_athree}}">
                            <div class="am-u-sm-8 am-u-md-4 am-u-end col-end" style="padding-left: 0px;">
                                <label id="app_three_show">{{$app->url_athree}}</label>
                            </div>

                        </div>
                    </div>

                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-12 am-u-md-2 am-text-right admin-form-text">
                            版本号
                        </div>
                        <div class="am-u-sm-12 am-u-md-10">
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="number_athree" class="am-input-sm" value="{{$app->number_athree}}"
                                   disabled>
                        </div>

                    </div>
                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-12 am-u-md-2 am-text-right admin-form-text">
                            是否强制更新
                        </div>
                        <div class="am-u-sm-12 am-u-md-10">
                            <label class="am-radio-inline">
                                <input type="radio" value="1" name="is_update_three" @if($app->is_update_three == 1) checked @endif> 是
                            </label>
                            <label class="am-radio-inline">
                                <input type="radio" value="0" name="is_update_three" @if($app->is_update_three == 0) checked @endif> 否
                            </label>
                        </div>
                    </div>
                </div>
                <hr data-am-widget="divider" style="" class="am-divider am-divider-dashed"/>
                <div class="am-margin">
                    <button type="submit" class="am-btn am-btn-primary am-btn-xs">提交保存</button>
                    <a href="javascript:history.go(-1);" class="am-btn am-btn-primary am-btn-xs">放弃保存</a>
                </div>
            </form>
        </div>

        @include('Admin.layouts._footer')
    </div>
@endsection

@section('js')
    <script src="/assets/xSystem/js/jquery.html5-fileupload.js"></script>
    <script src="/assets/xSystem/js/upload.js"></script>
    <script src="/assets/xSystem/vendor/ckfinder/ckfinder.js"></script>
    <script src="/assets/xSystem/js/ck_upload.js"></script>
@endsection
